#include <fmt/core.h>
#include <iostream>
using namespace std;

int main()
{
    std::string name = "Bob";
    int age = 30;
    // 打印 格式化
    fmt::print("Hello, {}! You are {} years old.\n", name, age);

    // 字符串 格式化
    std::string fmt_str = fmt::format("Hello, {}! You are {} years old.\n", name, age);
    cout << fmt_str << endl;

    return 0;
}

/* 
Hello, Bob! You are 30 years old.
Hello, Bob! You are 30 years old.

 */